package com.gejingyu.spring.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUserDao {

    public static void main(String[] args) {

        ApplicationContext context
                = new ClassPathXmlApplicationContext("bean.xml");
        UserDao user = context.getBean(UserDao.class);
        user.run();
    }
}
